from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client

secret_id = 'AKIDEH9BwSijV0GJ7gy1Yqrc7PTHEepkTxDE'
secret_key = 'pPkrjLglbCRWR6WgbGgqlY6j8LLAnCNJ'
region = 'ap-nanjing'

config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)
client = CosS3Client(config)

# 创建桶
client.delete_object(
    Bucket='wodetong-1317332932',
    Key='ran_str.py'
)
